package com.example.app.sharescreen;
import java.util.Random;
public class UserSessionManager {
    private String username;
    private String targetUser;
    private boolean isCaller = false;
    public UserSessionManager() {
        generateUsername();
    }
    private void generateUsername() {
        Random random = new Random();
        username = String.format("%03d", random.nextInt(1000));
    }
    public String getUsername() {
        return username;
    }
    public void setTargetUser(String targetUser) {
        this.targetUser = targetUser;
    }
    public String getTargetUser() {
        return targetUser;
    }
    public void setIsCaller(boolean isCaller) {
        this.isCaller = isCaller;
    }
    public boolean isCaller() {
        return isCaller;
    }
    public void clearSession() {
        targetUser = null;
        isCaller = false;
    }
} 